package org.iks.feign.service.store;

import io.github.taikonaut3.virtue.config.annotation.RemoteCaller;
import io.github.taikonaut3.virtue.rpc.virtue.config.VirtueCall;
import org.iks.common.pojo.message.ChatMessage;
import org.iks.common.pojo.user.UserInfoVo;

import java.util.List;

/**
 * @Author WenBo Zhou
 * @Date 2024/3/14 14:52
 */
@RemoteCaller("xim-store")
public interface SessionRemoteCaller {

    @VirtueCall(service = "sessionRemoteService", callMethod = "queryMembers")
    List<UserInfoVo> queryMembers(Integer sessionId);

    @VirtueCall(service = "sessionRemoteService", callMethod = "saveChatMessage")
    void saveChatMessage(ChatMessage message);
}
